package com.example.datamanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.datamanage.common.Result;
import com.example.datamanage.pojo.User;
import com.example.datamanage.pojo.dto.LoginDTO;
import com.example.datamanage.pojo.dto.RegisterDTO;
import com.example.datamanage.pojo.dto.UserDTO;
import com.example.datamanage.pojo.dto.UserSearchDTO;

import javax.servlet.http.HttpServletResponse;

/**
* @author 28142
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-07-17 14:37:12
*/
public interface UserService extends IService<User> {

    void export(HttpServletResponse response);

    UserDTO login(LoginDTO loginDTO);

    boolean register(RegisterDTO registerDTO);

    Result findPage(Integer pageNum, Integer pageSize, UserSearchDTO searchDTO);

    boolean saveUser(User user);
}
